﻿using ERPPublic;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WarehouseManagement.Domain.DTO.WarehouseSApp;

namespace WarehouseManagement.Domain.Entity
{

    /// <summary>
    /// 仓库入库申请表1
    /// </summary>
    [SugarTable("WarehouseSApp")]
    public class WarehouseSApp:Audit
    {

        /// <summary>
        /// 仓库入库id
        /// </summary>
        [SugarColumn(IsIdentity = true, IsPrimaryKey = true)]
        public int ShippRequestAppId { get; set; }
        /// <summary>
        /// 单据主题
        /// </summary>
        public string ?StorageTopic { get; set; }
        /// <summary>
        /// 单据编号
        /// </summary>
        public string? StorageNumber { get; set; }
        /// <summary>
        /// 单据来源
        /// </summary>
        public string? StorageSource { get; set; }
        /// <summary>
        /// 仓库名称
        /// </summary>
        public string? WName { get; set; }
        /// <summary>
        /// 申请人员
        /// </summary>
        public string? AppName { get; set; }
        /// <summary>
        /// 申请日期
        /// </summary>
        public DateTime? AppDate { get; set; }
        /// <summary>
        /// 入库类别
        /// </summary>
        public string ?StorageType { get; set; }
        /// <summary>
        /// 供应商名称
        /// </summary>
        public string ?VName { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? StorageRemark { get; set; }
        /// <summary>
        /// 状态 默认待入库
        /// </summary>
        public int State { get; set; }
        /// <summary>
        /// 生产退料编号
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(50)")]//设计长度
        public string? StripNumber { get; set; }
    }

    public class WarehouseSAppPage
    {
        public int SumCount { get; set; }
        public int PageLast { get; set; }
        public List<WarehouseSAppSelectDto> list { get; set; }
    }

}
